home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / fwkcs118.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-09-11  |  4KB  |  137 lines

  1. @echo off
  2. if exist go.bat go
  3. cls
  4. echo - Part of FWKCS(TM) Contents_Signature System, Version 1.18.
  5. echo - (C)Copyright Frederick W. Kantor 1989-1992. All rights reserved.
  6. echo -
  7. echo - Your use of the FWKCS(TM) Contents_Signature System is at solely your own
  8. echo - risk. For safety, please have proper backups of your files.
  9. echo -
  10. echo - INSTALL.BAT to install the FWKCS(TM) Contents_Signature System, Ver. 1.18;
  11. echo -  for use in same directory with FWKCS118.ZIP, FWKCS.118, and FWKCS_TM.118.
  12. echo -
  13. echo - Note: Before you start the installation, please have available on your PATH:
  14. echo -        Phil Katz's PKUNZIP(R), Version 1.10 or later.
  15. echo -        (IBM/MS) DOS 3.30-5.00, ATTRIB command (or IBM OS/2 2.0 DOS session).
  16. echo -
  17. echo - (More information provided as FWKCS.118 package is opened; see README.TXT.)
  18. echo -
  19. echo -              If you are replacing FWKCS Ver. 1.12 or later, use REPLACE.BAT.
  20. echo -              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21. echo -
  22. echo -  Usage:     INSTALL "<enter>"
  23. if "%1" == "/*" goto end
  24. echo -
  25. echo -  If you are missing PKUNZIP, or ATTRIB, as above, stop now!
  26. echo -  To quit, press Ctrl+C, then y                    ~~~~~~~~
  27. echo -
  28. pause
  29. if not exist fwkcs118.zip goto nv118
  30. if exist #@!#@!^^.@!@ del #@!#@!^^.@!@ > nul
  31. if exist #@!#@!^^.@!@ attrib -r #@!#@!^^.@!@ > nul
  32. if exist #@!#@!^^.@!@ del #@!#@!^^.@!@ > nul
  33. if exist @@!#@!^^.@!@ del @@!#@!^^.@!@ > nul
  34. if exist @@!#@!^^.@!@ attrib -r @@!#@!^^.@!@ > nul
  35. if exist @@!#@!^^.@!@ del @@!#@!^^.@!@ > nul
  36. if exist @@!#@^!^.@!@ del @@!#@^!^.@!@ > nul
  37. if exist @@!#@^!^.@!@ attrib -r @@!#@^!^.@!@ > nul
  38. if exist @@!#@^!^.@!@ del @@!#@^!^.@!@ > nul
  39. pkunzip @@!#@!^^.@!@ > nul
  40. if errorlevel 1 goto zex
  41. goto nz
  42. :zex
  43. cls
  44. if not exist fwkcstmp.118 goto n1
  45. if exist fwkhi.com del fwkhi.com > nul
  46. if exist fwkhi.com attrib -r fwkhi.com > nul
  47. if exist fwkhi.com del fwkhi.com > nul
  48. pkunzip -o fwkcstmp.118 fwkhi.com > nul
  49. if exist fwkhi.com goto n2
  50. :n1
  51. if not exist fwkcs.118 goto nd
  52. if not exist fwkcs_tm.118 goto cm
  53. ren fwkcs_tm.118 fwkcs_tm.com > nul
  54. fwkcs_tm < fwkcs.118 >fwkcstmp.118
  55. if errorlevel 1 goto fbad
  56. ren fwkcs_tm.com fwkcs_tm.118 > nul
  57. pkunzip -o fwkcstmp.118 fwkhi.com > nul
  58. if not exist fwkhi.com goto fz
  59. :n2
  60. cls
  61. echo -
  62. echo -  Should I enter FWKCS118.ZIP's contents_signatures for future reference?
  63. echo -
  64. echo -    Press either 0 or 1 to answer:   0 = NO.  1 = YES.
  65. echo -
  66. :ask1
  67. fwkhi
  68. if errorlevel 2 goto ask1
  69. if not errorlevel 1 goto nocs
  70. if exist fwkcs118.zip ren fwkcs118.zip @@!#@!^^.@!@ > nul
  71. if exist fwkcstmp.118 ren fwkcstmp.118 fwkcs118.zip > nul
  72. pkunzip -o fwkcs118.zip fwkcs.exe > nul
  73. fwkcs /1 fwkcs118.zip #@!#@!^^.@!@
  74. ren fwkcs118.zip fwkcstmp.118 > nul
  75. if exist @@!#@!^^.@!@ ren @@!#@!^^.@!@ fwkcs118.zip > nul
  76. if not exist fwkcs.exe pkunzip fwkcs118.zip fwkcs.exe > nul
  77. if exist fwkcs118.zip fwkcs /1 fwkcs118.zip >> #@!#@!^^.@!@
  78. fwkcs #@!#@!^^.@!@ /a7.8v",!" @@!#@^!^.@!@
  79. del #@!#@!^^.@!@ > nul
  80. fwkcs @@!#@^!^.@!@ /s
  81. fwkcs @@!#@^!^.@!@ nul myowncsl.srt /ms
  82. del @@!#@^!^.@!@ > nul
  83. del fwkcs.exe > nul
  84. :nocs
  85. pkunzip fwkcstmp.118 go.bat > nul
  86. if errorlevel 51 goto fz
  87. if errorlevel 50 goto ns
  88. if errorlevel 1 goto fz
  89. del fwkhi.com > nul
  90. go
  91. :nv118
  92. echo -
  93. echo -  INSTALL.BAT is for use in the same directory with all these
  94. echo -  files together:  FWKCS118.ZIP, FWKCS.118, and FWKCS_TM.118.
  95. goto try
  96. :ns
  97. del fwkcs118.tmp > nul
  98. echo -
  99. echo - There is apparently not enough space here for me to work in...
  100. echo -
  101. echo - After you have provided more space here, or moved my files to
  102. echo -   another drive with enough space,
  103. goto try
  104. :fz
  105. del fwkcs118.tmp > nul
  106. echo -
  107. echo - Error getting file(s).
  108. goto try
  109. :fbad
  110. del fwkcs118.tmp > nul
  111. ren fwkcs_tm.com fwkcs_tm.118 > nul
  112. echo -
  113. echo -  FWKCS.118 appears defective or incompatible. Execution aborted.
  114. :try
  115. echo -
  116. echo -  Please clean up, and try again. See README.TXT.
  117. goto end
  118. :nz
  119. echo -
  120. echo -  Where is Phil Katz's PKUNZIP(R)?
  121. echo -
  122. echo -  After getting this missing program,
  123. echo -
  124. echo -           Please try again.
  125. goto end
  126. :cm
  127. echo -
  128. echo -  I need FWKCS_TM.118.
  129. echo -
  130. echo -        I quit!
  131. goto end
  132. :nd
  133. echo -
  134. echo -    Nothing to do!
  135. :end
  136. echo -
  137.